package com.pq.controller;

import com.pq.api.OrderApi;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/test")
public class TestController {
    @Resource
    private OrderApi orderApi;

    @GetMapping("/createOrder")
    public boolean generatorOrder(){
        return orderApi.generatorOrder();
    }

}
